lines

fun <D> ReadOnlyProperty<D, String>.lines(): ReadOnlyProperty<D, List<String>>

Get the lines of the string. Trims each line, does not include blank lines.

fun <D> ReadWriteProperty<D, String>.lines(writeSeparator: String = "\n"): ReadWriteProperty<D, List<String>>
fun <D> ReadWriteProperty<D, String?>.lines(writeSeparator: String = "\n"): ReadWriteProperty<D, List<String>?>

Get the lines of the string. Trims each line, does not include blank lines.

Parameters

writeSeparator

the separator to join the lines with, on write

fun <D> ReadOnlyProperty<D, String?>.lines(): ReadOnlyProperty<D, List<String>?>

Get the lines of the string. Trims each line, does not inclued blank lines.